<?php

namespace app\department\model;

use think\Model;

class DepartmentConfigModel extends Model
{
    /* 自动处理时间 */
    protected $autoWriteTimestamp = 'int';

    public function items()
    {
        return $this->hasMany('departmentConfigItemModel','pid')->field('id,pid,name');
    }
}